import { NestFactory } from '@nestjs/core';
import { AppModule } from './app.module';
import {NestExpressApplication} from "@nestjs/platform-express"
import { join } from 'path';
import * as cors from "cors";

async function bootstrap() {
  const app = await NestFactory.create<NestExpressApplication>(AppModule,{cors:true});
  app.use(cors())


  app.useStaticAssets(join(__dirname,"images"),{
    prefix:"/images"
  })
  await app.listen(3000);
}
bootstrap();
